#include "stdafx.h"
#include "GameEvents.h"
#include "InstanceTouch.h"


DECL_INSTANCE_TOUCH(ETouch_GameEvents);

#define REGISTER_GAMEEVENT_MGR(GameEvent) \
	GlobalClassManager::Instance().RegisterClass(GameEvent::s_GetReflection(),GameEvent::EventID,eDefGroup_GameEvents);

struct GameEventsReflectionRegister
{
	GameEventsReflectionRegister()
	{
		REGISTER_REFLECTION_MEMBER(GameEvent_LevelUp,m_iLevel,0).Editor_SetAsNone();

		REGISTER_REFLECTION_MEMBER(GameEvent_GainACard,m_iCardDefID,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_GainACard,m_iCardTypeID,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_GainACard,m_iCardStar,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_GainACard,m_iCardRace,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_GainACard,m_iIsNewType,INVALID_ID).Editor_SetAsNone();
		

		REGISTER_REFLECTION_MEMBER(GameEvent_GainAHero,m_iHeroDefID,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_GainAHero,m_iHeroTypeID,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_GainAHero,m_iHeroStar,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_GainAHero,m_iHeroRace,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_GainAHero,m_iIsNewType,INVALID_ID).Editor_SetAsNone();
		
		REGISTER_REFLECTION_MEMBER(GameEvent_LevlupHeroFinalSkill,m_iSkillLevel,0).Editor_SetAsNone();

		REGISTER_REFLECTION_MEMBER(GameEvent_RankTounamentBattleEnd,m_iIsWin,INVALID_ID).Editor_SetAsNone();

		REGISTER_REFLECTION_MEMBER(GameEvent_EliteTounamentBattleEnd,m_iIsWin,INVALID_ID).Editor_SetAsNone();

		REGISTER_REFLECTION_MEMBER(GameEvent_RobeEnd,m_iIsWin,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_RobeEnd,m_iGainCoin,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_RobeEnd,m_iGainHonor,INVALID_ID).Editor_SetAsNone();
		

		REGISTER_REFLECTION_MEMBER(GameEvent_PassStage,m_iMapID,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_PassStage,m_iAreaID,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_PassStage,m_iStar,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_PassStage,m_iUniqueID,INVALID_ID).Editor_SetAsNone();

		REGISTER_REFLECTION_MEMBER(GameEvent_PassMaze,m_iMazeID,INVALID_ID).Editor_SetAsNone();

		REGISTER_REFLECTION_MEMBER(GameEvent_PassTower,m_iTowerLvl,INVALID_ID).Editor_SetAsNone();

		REGISTER_REFLECTION_MEMBER(GameEvent_MazeFightWithOtherPlayer,m_iIsWin,INVALID_ID).Editor_SetAsNone();

		REGISTER_REFLECTION_MEMBER(GameEvent_FriendUpdate,m_iFriendNum,INVALID_ID).Editor_SetAsNone();

		REGISTER_REFLECTION_MEMBER(GameEvent_SignIn,m_iSignInCount,INVALID_ID).Editor_SetAsNone();

		REGISTER_REFLECTION_MEMBER(GameEvent_GainCoin,m_iGainNum,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_GainCoin,m_iBalance,INVALID_ID).Editor_SetAsNone();

		REGISTER_REFLECTION_MEMBER(GameEvent_GainCash,m_iGainNum,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_GainCash,m_iBalance,INVALID_ID).Editor_SetAsNone();

		REGISTER_REFLECTION_MEMBER(GameEvent_FaildPushStage,m_iMapID,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_FaildPushStage,m_iAreaID,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_FaildPushStage,m_iStar,INVALID_ID).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_FaildPushStage,m_iUniqueID,INVALID_ID).Editor_SetAsNone();


		REGISTER_REFLECTION_MEMBER(GameEvent_DrawCard,m_iMoneyType,int32(EShopMoney_Gold)).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_DrawCard,m_iMoneyNum,1).Editor_SetAsNone();
		REGISTER_REFLECTION_MEMBER(GameEvent_DrawCard,m_iFunctionID,INVALID_ID).Editor_SetAsNone();

		REGISTER_REFLECTION_MEMBER(GameEvent_PassCrusade,m_iNodeID,INVALID_ID).Editor_SetAsNone();


		REGISTER_GAMEEVENT_MGR(GameEvent_LevelUp);	
		REGISTER_GAMEEVENT_MGR(GameEvent_GainACard);	
		REGISTER_GAMEEVENT_MGR(GameEvent_GainAHero);	
		REGISTER_GAMEEVENT_MGR(GameEvent_LevlupHeroFinalSkill);	
		REGISTER_GAMEEVENT_MGR(GameEvent_FlushHeroGiftSkill);	
		REGISTER_GAMEEVENT_MGR(GameEvent_RankTounamentBattleEnd);	
		REGISTER_GAMEEVENT_MGR(GameEvent_EliteTounamentBattleEnd);	
		REGISTER_GAMEEVENT_MGR(GameEvent_RobeEnd);	
		REGISTER_GAMEEVENT_MGR(GameEvent_PassStage);	
		REGISTER_GAMEEVENT_MGR(GameEvent_PassMaze);	
		REGISTER_GAMEEVENT_MGR(GameEvent_PassTower);	
		REGISTER_GAMEEVENT_MGR(GameEvent_MazeFightWithOtherPlayer);	
		REGISTER_GAMEEVENT_MGR(GameEvent_FriendUpdate);	
		REGISTER_GAMEEVENT_MGR(GameEvent_SignIn);	
		REGISTER_GAMEEVENT_MGR(GameEvent_GainCoin);	
		REGISTER_GAMEEVENT_MGR(GameEvent_GainCash);	
		REGISTER_GAMEEVENT_MGR(GameEvent_FaildPushStage);	
		REGISTER_GAMEEVENT_MGR(GameEvent_DrawCard);	
		REGISTER_GAMEEVENT_MGR(GameEvent_ChangeNickName);	
		REGISTER_GAMEEVENT_MGR(GameEvent_InviteAccepted);	
		REGISTER_GAMEEVENT_MGR(GameEvent_PassCrusade);	
	}
}___gameeventdefreflectionregister;